package com.witfortos.common.base

import android.app.Application
import android.content.Context
import com.witfortos.common.app.GlobalConfig
import com.witfortos.common.app.MVVMLin

/**
 *   @auther : tan
 *   time   : 2020-07-10
 */
open class App : Application() {


    companion object {
        var mContext: App? = null;
    }

    override fun onCreate() {
        super.onCreate()
        mContext = this;
        MVVMLin.install(GlobalConfig().apply {
            viewModelFactory = ViewModelFactory()
        })
    }

}